package com.dh.collection;

import java.util.ArrayList;
import java.util.List;

public class ListDemo05 {
    public static void main(String[] args) {
        List<String> strings = new ArrayList<>();
        strings.add("1");
        strings.add("2");
        for (String string : strings) {
            System.out.println(string);
        }
        List<Goods> goods = new ArrayList<>();
        goods.add(new Goods("雪碧", 3));

        Test<String> test = new Test<>();

        test.get();
    }
}


class Test<T> {
    private T name;

    public T get() {
        return name;
    }

}
